/**
 * @fileOverview 战斗系统 攻击 防御
 */

module.exports = {
    requires:['Life'],
    attributes: {
        ATK: {
            label: '攻击',
            type: 'datatype.Integer',
            options: {min: 0},
            defaultValue: 1
        },
        DEF: {
            label: '防御',
            type: 'datatype.Integer',
            options: {min: 0},
            defaultValue: 1
        }
    },
    methods: {
        attack:function(target){
            if(target.hasTrait('Fight')){
                
            }
        }       
    },
    events: {}
};
